package com.happy016.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicReceiver {


    @RabbitListener(queues = "topic.message")
    public void receiverSendMessage(String message){
        System.out.println("topic message :"+message);
    }

    @RabbitListener(queues = "topic.messages")
    public void receiverSendMessages(String messages){
        System.out.println("topic messages :"+messages);
    }
}
